import { IForm } from '@/render/base-ui/form'

export const versionConfig: IForm = {
  labelWidth: '150px',
  itemStyle: {
    padding: '2px 10px'
  },
  colLayout: {
    span: 24
  },
  labelPosition: 'left',
  formItems: [
    {
      field: 'vendorId',
      type: 'input',
      label: '供应商编号：'
    },
    {
      label: 'AUTOSAR版本号：',
      type: 'number',
      fields: [
        {
          field: 'arReleaseMajorVersion',
          otherOptions: {
            min: 4,
            max: 4
          }
        },
        {
          field: 'arReleaseMinorVersion',
          otherOptions: {
            min: 3,
            max: 3
          }
        },
        {
          field: 'arReleaseRevisionVersion',
          otherOptions: {
            min: 1,
            max: 1
          }
        }
      ]
    },
    {
      label: '软件版本号：',
      type: 'number',
      fields: [
        {
          field: 'swMajorVersion'
        },
        {
          field: 'swMinorVersion'
        },
        {
          field: 'swPatchVersion'
        }
      ]
    }
  ]
}
